package cn.wyf.demo.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

import cn.wyf.demo.mapper.RoleMapper;
import cn.wyf.demo.model.Role;
import cn.wyf.demo.model.RoleExample;
import cn.wyf.demo.service.RoleService;

@Service("RoleService")
public class RoleServiceImpl implements RoleService{

    @Resource
    RoleMapper mapper;

    @Override
    public List<Role> querys() {
        return mapper.selectByExample(new RoleExample());
    }
}